#ifndef     __BUILD_H
#define     __BUILD_H

#include <stdint.h>

#define usize_t uint8_t

#ifndef BUILD_APP
#ifndef BUILD_BOOT

#define BUILD_APP
//#define BUILD_BOOT

#endif
#endif

#if defined(BUILD_APP) && defined(BUILD_BOOT)
#error "config invalid"
#endif

#if (!defined(BUILD_APP)) && (!defined(BUILD_BOOT)) 
#error "config invalid"
#endif

#ifndef APP_MAIN
#ifndef APP_CARGO
#ifndef APP_HEAT
#ifndef APP_PEARL
#ifndef APP_ICE

//#define APP_MAIN
#define APP_CARGO
//#define APP_HEAT
//#define APP_PEARL
//#define APP_ICE

#endif
#endif
#endif
#endif
#endif

#ifdef APP_MAIN

#define CAN_RECV_CARGO
#define CAN_RECV_HEAT
#define CAN_RECV_PEARL
#define CAN_RECV_ICE

#endif

#ifdef APP_CARGO
#define CAN_RECV_IPC
#endif

#ifdef APP_HEAT
#define CAN_RECV_IPC
#endif

#ifdef APP_PEARL
#define CAN_RECV_IPC
#endif

#ifdef APP_ICE
#define CAN_RECV_IPC
#endif

#endif
